import { legacy_createStore, combineReducers } from "redux";
// import reducer from "./reducer.js"
import Num from "./num/reducer.js";
import Arr from "./arr/reducer.js";

/**
 * redux本身自带的模块化
 * 1、使用combineReducers来创建一个 reducers
 * 2、使用legacy_createStore将reducers创建一个仓库
 */
const reducers = combineReducers({
  Num,
  Arr,
});

const store = legacy_createStore(reducers);
export default store;
